<?php
class ErrorController extends ControllerAbstract{
	public function __construct($main, $exception){
		
		parent::__construct($main);
		
		$this -> view = new ErrorView();
		$this->view->errorText = $exception ->getMessage();
		
	}
	
	public function init(){
		
	}
	public function checkUserPermision($userPermision){
		return true;
	}
	
	public function begin(){
		
	}
	
	public function getView(){
		return $this->view->defaultView();
	}
}